﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using IBLL;
using IDAL;

namespace BLL
{
    class VideoInAdmin : IVideoInAdmin
    {
        private static readonly IAdminVideo dal = DALFactory.DataAccess.CetVideo();
        public IOrderedQueryable GetOnePageVideo(int page)
        {
            return dal.GetOnePageVideo(page);
        }

        public IOrderedQueryable GetOnePageVideoByTime(int page)
        {
            return dal.GetOnePageVideoByTime(page);
        }
        public IOrderedQueryable GetVideoByUser(string name)
        {
            return dal.GetVideoByUser(name);
        }

        public int GetVideoCount()
        {
            return dal.GetVideoCount();
        }

        public void DeleteVideoById(int id)
        {
            dal.DeleteVideoById(id);
        }
    }
}
